package com.gitee.ice1938.adcode.fun;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

public class DictAdCodeModel implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8304476524030784944L;

	private String adCode;
	private String adName;
	private int useCount = 1;
	
	private Date startTime;
	private Date revokeTime;
	private int yearTime;

	public int getUseCount() {
		return useCount;
	}

	public void setUseCount(int useCount) {
		this.useCount = useCount;
	}

	public String getAdCode() {
		return adCode;
	}

	public void setAdCode(String adCode) {
		this.adCode = adCode;
	}

	public String getAdName() {
		return adName;
	}

	public void setAdName(String adName) {
		this.adName = adName;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getRevokeTime() {
		return revokeTime;
	}

	public void setRevokeTime(Date revokeTime) {
		this.revokeTime = revokeTime;
	}


	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public String toString() {
		return "adCode=" + adCode + ", adName=" + adName + ", useCount=" + useCount;
	}

	@Override
	public int hashCode() {
		return Objects.hash(adCode, adName);
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DictAdCodeModel other = (DictAdCodeModel) obj;
		return Objects.equals(adCode, other.adCode) && Objects.equals(adName, other.adName);
	}

	public int getYearTime() {
		return yearTime;
	}

	public void setYearTime(int yearTime) {
		this.yearTime = yearTime;
	}

}
